package com.spark.check.model

/**
 * 任务
 */
data class TaskModel(
        var id: String = "",
        var chapter: String = "",
        var score: String = "",
        var title: String = "",
        var gravity: Int = 0,
        var responsible: String = "",
        var cooperate: MutableList<String> = mutableListOf(),
        var invited: MutableList<String> = mutableListOf(),
        var name: String = "",
        var serialnum: String = "",
        var content: MutableList<Content> = mutableListOf()
) {

    companion object {
        fun mock(): TaskModel {
            return TaskModel(
                    "0",
                    "0.1.2",
                    "6",
                    "专业技能及作业规范",
                    6,
                    "魁拔",
                    mutableListOf("海问香", "天神"),
                    mutableListOf("地之国度", "螟蛉"),
                    "露天煤矿-岗位规范-专业技能及作业规范",
                    "01.01.02",
                    mutableListOf(
                            Content("0", "要求", "1、建立安全风险管控体系，矿长全面责任制险管控体系\n2、建立安全风险管控体系"),
                            Content("0", "要求", "1、建立安全风险管控体系，矿长全面责任制险管控体系\n2、建立安全风险管控体系")
                    )
            )
        }
    }

    data class Content(
            var id: String = "",
            var title: String = "",
            var content: String = ""
    )
}
